package com.atech.ebayadmin.category.service;

import java.util.List;
import com.atech.ebayadmin.category.model.Category;



public interface ICategoryService{
    /**
     * getAmount 根据ID查找分类对象
     *
     * @param Integer id
     *
     * @return Amount
     * @throws java.lang.Exception
     */
    public Category getCategory(String id) throws Exception;
    /**
     * listCategoryByParentId 根据父节点ID查找所有的树节点
     *
     * @param Integer id
     *
     * @return List<Category>
     * @throws java.lang.Exception
     */
    public List<Category> listCategoryByParentId(String parentId) throws Exception;
    /**
     * ascendToTop 根据父节点ID查找所有的树节点
     *
     * @param String categoryId
     *
     * @return List<Category>
     * @throws java.lang.Exception
     */
    public List<Category> ascendToTop(String categoryId)throws Exception;
    //查找这个分类的树结构的ID和名称
    public String[] getCategoryHierarchy(String id)throws Exception;
	

}
